<?php

class Application_Form_Productoption extends Zend_Form {
    
    public function init() {
        $this->setName('Productoption');
        
        $product_option_id = new Zend_Form_Element_Hidden('product_option_id');
                
        $product_option_name = new Zend_Form_Element_Text('product_option_name');
                $product_option_name->setLabel('Tên :')
                                    ->setRequired(true);
        
        $btn_submit = new Zend_Form_Element_Submit('submit');
        $btn_submit->setAttrib('id', 'submit');
        $btn_submit->setlabel('Đồng ý');

        $btn_cancel = new Zend_Form_Element_Submit('cancel');
        $btn_cancel->setAttrib('id', 'cancel');
        $btn_cancel->setLabel('Hủy bỏ');
        
        
        $this->addElements(array($product_option_name, $product_option_id, $btn_submit, $btn_cancel
        ));
    }
}